package io.afu.nginxhelper.dto.common.server;

import io.afu.nginxhelper.constant.NgxConst;

import java.util.List;

public class ServerName {

    public static final String KEY = "server_name";

    List<String> serverNames;


    public void parse(String line){

    }


    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("server_name").append(NgxConst.SEP);
        for (String serverName:serverNames){
            stringBuilder.append(serverName).append(NgxConst.SEP);
        }
        stringBuilder.append(NgxConst.END_MARK);
        return stringBuilder.toString();
    }

    public List<String> getServerNames() {
        return serverNames;
    }

    public void setServerNames(List<String> serverNames) {
        this.serverNames = serverNames;
    }
}
